import request from "@/utils/request";
import cfg from "@/config/config";

const ztShid = {
  /**方法:insertZtShid
   * 添加班次上下班时段
   * @param ztShidDto parent,lx,sbsj,xbsj,sbks,xbjs,cdsj,ztsj,bjcd,bjzt,qdqt,sbws,xbws,alld,allt,types,mach,isEnjoymentSubsidized
   * @return
   */
  savaZtShid: param => {
    return request("post", cfg.apiUrl + "api/ztShid/savaZtShid", param);
  },

  /**方法:deleteZtShid
   * 删除时段
   * @param ztShidDto bh 时段ID
   * @return
   */
  deleteZtShid: param => {
    return request("post", cfg.apiUrl + "api/ztShid/deleteZtShid", param);
  },
  /**方法:period
   * 根据bh获取班次明细
   * @param ztBanCiDto 条件  bh
   * @return
   */
  period: param => {
      return request("post", cfg.apiUrl + "api/ztShid/list/period", param);
  }
};

export default ztShid;
